var o, e = require, t = module, n = exports, i = this && this.__extends || (o = function(e, t) {
    return (o = Object.setPrototypeOf || {
        __proto__: []
    } instanceof Array && function(e, t) {
        e.__proto__ = t;
    } || function(e, t) {
        for (var n in t) t.hasOwnProperty(n) && (e[n] = t[n]);
    })(e, t);
}, function(e, t) {
    function n() {
        this.constructor = e;
    }
    o(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, 
    new n());
}), a = this && this.__decorate || function(e, t, n, o) {
    var r, a = arguments.length, c = a < 3 ? t : null === o ? o = Object.getOwnPropertyDescriptor(t, n) : o;
    if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) c = Reflect.decorate(e, t, n, o); else for (var u = e.length - 1; 0 <= u; u--) (r = e[u]) && (c = (a < 3 ? r(c) : 3 < a ? r(t, n, c) : r(t, n)) || c);
    return 3 < a && c && Object.defineProperty(t, n, c), c;
};

Object.defineProperty(n, "__esModule", {
    value: !0
});

var r = e("PopBackItemView"), s = e("MyBanner"), c = e("GameData"), l = e("UIManager"), d = cc._decorator, u = d.ccclass, p = d.property, h = function(t) {
    function e() {
        var e = null !== t && t.apply(this, arguments) || this;
        return e.light = null, e.numLabel = null, e.myBanner = null, e;
    }
    return i(e, t), e.prototype.onLoad = function() {}, e.prototype.onEnable = function() {
        var e = this;
        cc.tween(this.node).to(.1, {
            scale: 1.1
        }).to(.1, {
            scale: 1
        }).call(function() {
            e.myBanner.showSelfBanner();
        }).start();
    }, e.prototype.init = function() {
        cc.tween(this.light).repeatForever(cc.tween().by(2, {
            angle: 60
        })).start(), PD.checkNumParam("num") && (this.numLabel.string = GA.formatNumber(PD.data.num));
    }, e.prototype.callback = function() {
        var e = this;
        PD.checkNumParam("num") ? (c.GD.updateNumber("money", PD.data.num), l.default.getInstance().barViews.forEach(function(e) {
            return e.refresh();
        }), l.default.getInstance().showToast({
            money: PD.data.num
        }, function() {
            e.closePnl();
        })) : this.closePnl();
    }, a([ p(cc.Node) ], e.prototype, "light", void 0), a([ p(cc.Label) ], e.prototype, "numLabel", void 0), 
    a([ p(s.default) ], e.prototype, "myBanner", void 0), a([ u ], e);
}(r.default);

n.default = h;